package com.bto.solar.work.dto.order;

import com.bto.solar.work.dto.FormBtnsDto;
import com.bto.solar.work.entity.OrderState;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.sql.Date;

/**
 * @author 王小波
 * @description:
 * @date 2023/8/21 8:05
 */

@Data
@NoArgsConstructor
@Accessors(chain = true)
public class GSContractDto {
    @ApiModelProperty("订单ID")
    private String orderId;

    @ApiModelProperty("购售电合同年限")
    @JsonFormat(pattern="yyyy")
    private Date contractPeriod;

    @ApiModelProperty("购售电地址是否一致(0：（否）不一致，1：（是）一致)")
    private Byte isConsistent;

    @ApiModelProperty("省")
    private String provinceCode;

    @ApiModelProperty("市")
    private String cityCode;

    @ApiModelProperty("区/县")
    private String areaCode;

    @ApiModelProperty("购售电详细地址")
    private String detailedAddress;

    @ApiModelProperty("购售电合同（PDF上传）")
    private String contract;

    @ApiModelProperty("任务状态")
    private OrderState orderState;

    @ApiModelProperty("按钮信息")
    private FormBtnsDto btns;

}
